+2006-06-20 Carlos Garnacho <carlosg@gnome.org>
+
+ * gtk/gtknotebook.c (gtk_notebook_stop_reorder): unset the pressed
+ button here.
+ (gtk_notebook_grab_notify): stop reorder when the widget becomes
+ shadowed. Fixes bug #335873
+
2006-06-18 Christian Persch <chpe@cvs.gnome.org>
* gtk/gtkdialog.c: (gtk_dialog_class_init): Set default action area
+2006-06-20 Carlos Garnacho <carlosg@gnome.org>
+
+ * gtk/gtknotebook.c (gtk_notebook_stop_reorder): unset the pressed
+ button here.
+ (gtk_notebook_grab_notify): stop reorder when the widget becomes
+ shadowed. Fixes bug #335873
+
2006-06-18 Christian Persch <chpe@cvs.gnome.org>
* gtk/gtkdialog.c: (gtk_dialog_class_init): Set default action area
if (!page)
return;
+ priv->pressed_button = -1;
+
if (page->reorderable || page->detachable)
{
if (!priv->during_detach)
if (!priv->during_detach &&
page->reorderable &&
event->button == priv->pressed_button)
- {
- priv->pressed_button = -1;
- gtk_notebook_stop_reorder (notebook);
- }
+ gtk_notebook_stop_reorder (notebook);
if (event->button == notebook->button)
{
if (!(event->state & GDK_BUTTON1_MASK) &&
priv->pressed_button != -1)
{
- priv->pressed_button = -1;
gtk_notebook_stop_reorder (notebook);
stop_scrolling (notebook);
}
gtk_notebook_grab_notify (GtkWidget *widget,
gboolean was_grabbed)
{
+ GtkNotebook *notebook = GTK_NOTEBOOK (widget);
+
if (!was_grabbed)
- stop_scrolling (GTK_NOTEBOOK (widget));
+ {
+ gtk_notebook_stop_reorder (notebook);
+ stop_scrolling (notebook);
+ }
}
static void
{
GtkNotebookPrivate *priv = GTK_NOTEBOOK_GET_PRIVATE (widget);
- priv->pressed_button = -1;
gtk_notebook_stop_reorder (GTK_NOTEBOOK (widget));
GTK_BIN (priv->dnd_window)->child = NULL;